package com.qf.ticket2301.R;

import com.qf.ticket2301.entity.VoteData;
import lombok.Data;

/**
 * @Author UNIQ7xi
 * @Date 2023/6/27 21:07
 * @Version v1.8
 **/
@Data
public class R {
    private String msg;
    private int code;
    private VoteData data;

    public R(String msg, long totalVotes) {
        this.msg = msg;
        this.code = (totalVotes > 0) ? 1 : 0;
        this.data = new VoteData("张靓颖", totalVotes);
    }
}
